

<%@page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>

<%@taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@taglib prefix="security"
	uri="http://www.springframework.org/security/tags"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@taglib prefix="acme" tagdir="/WEB-INF/tags"%>

<form:form action="${requestURI}" modelAttribute="userGroupForm">

	<form:hidden path="id" />
	<jstl:choose>
		<jstl:when test="${isNew}">

			<acme:textbox code="userGroup.name" path="name" />
			<acme:textbox code="userGroup.description" path="description" />
			<acme:submit code="userGroup.save" name="save" />

		</jstl:when>
		<jstl:when test="${editable}">

			<acme:textbox code="userGroup.name" path="name" />
			<acme:textbox code="userGroup.description" path="description" />
			<acme:submit code="userGroup.update" name="save" />
			<input type="submit" name="delete"
					value="<spring:message code="userGroup.delete" />"
					onclick="return confirm('<spring:message code = "userGroup.confirm.delete"/>')" />

		</jstl:when>
		<jstl:otherwise>
			<!-- Ni editable ni nuevo -->

			<acme:textbox code="userGroup.name" path="name" readonly="true" />
			<acme:textbox code="userGroup.description" path="description"
				readonly="true" />
		</jstl:otherwise>
	</jstl:choose>

	<acme:cancel code="userGroup.goBack" url="${backURI}" />





</form:form>



